﻿@{
    ViewBag.Title = "保存会员类型";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model JStore.Web.Controllers.UserTypes.ViewModels.SaveUserTypeModel
<link href="../../Scripts/jquery-validation-engine/css/template.css" rel="stylesheet"
    type="text/css" />
<link href="../../Scripts/jquery-validation-engine/css/validationEngine.jquery.css"
    rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-validation-engine/js/jquery.validationEngine.js"
    type="text/javascript"></script>
<script src="../../Scripts/jquery-validation-engine/js/languages/jquery.validationEngine-zh_CN.js"
    type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#form1").validationEngine();
    });
</script>
<div class="right_box_card">
    <ul>
        <li class="right_box_card1"><a href="#">保存会员类型</a></li>
    </ul>
</div>
@using (Html.BeginForm("Save", "UserTypes", FormMethod.Post, new { @class = "formular", id = "form1" }))
{
    <table class="enter_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.HiddenFor(c => c.Id)
                @Html.LabelFor(c => c.UserTypeName)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.UserTypeName, new { @class = "text-input validate[required,maxSize[32]]" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.TjRate)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.TjRate, new { @class = "text-input validate[required,min[0.01],max[1]]" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.RepeatRate)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.RepeatRate, new { @class = "text-input validate[required,min[0.01],max[1]]" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.ShareDeductRate)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.ShareDeductRate, new { @class = "text-input validate[required,min[0],max[1]]" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.JdCountPreLayer)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.JdCountPreLayer, new { @class = "text-input validate[required,min[1],custome[integer]]" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.AreaTjRate)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.AreaTjRate, new { @class = "text-input validate[required,min[0],max[1]]" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.AreaRepeatRate)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.AreaRepeatRate, new { @class = "text-input validate[required,min[0],max[1]]" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.AreaManageRate)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.AreaManageRate, new { @class = "text-input validate[required,min[0],max[1]]" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.AreaFosterRate)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.AreaFosterRate, new { @class = "text-input validate[required,min[0],max[1]]" })
            </td>
        </tr>
           <tr height="40">
            <td class="entry_tab_td1">
                @Html.LabelFor(c => c.AreaJdCountPreLayer)
            </td>
            <td class="entry_tab_td2">
                @Html.TextBoxFor(c => c.AreaJdCountPreLayer, new { @class = "text-input validate[required,min[1],custome[integer]]" })
            </td>
        </tr>
        <tr height="40">
            <td class="entry_tab_td1">
            </td>
            <td class="entry_tab_td2">
                <input type="submit" value="保存" class="submit" style="float: left;" />
            </td>
        </tr>
    </table> 
}
